package com.bancomer.batch.pojo;

import java.util.List;
import java.util.Properties;

public class Alert {
	private Integer idAlert;
	private String name;
	private String description;
	private String version="1.0";
	private String patternAlertDate;
	private String alertDate;
	
	private List<FileHelper> propertiesFiles;
	
	private List<FileHelper> hdfsFiles;
	
	private List<FileHelper> outputFiles;
	
	private PigScript pigScript;
	
	private Properties properties;
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Integer getIdAlert() {
		return idAlert;
	}
	public void setIdAlert(Integer idAlert) {
		this.idAlert = idAlert;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public String getVersion() {
		return version;
	}
	public void setVersion(String version) {
		this.version = version;
	}
	public String getPatternAlertDate() {
		return patternAlertDate;
	}
	public void setPatternAlertDate(String patternAlertDate) {
		this.patternAlertDate = patternAlertDate;
	}
	public String getAlertDate() {
		return alertDate;
	}
	public void setAlertDate(String alertDate) {
		this.alertDate = alertDate;
	}
	
	public List<FileHelper> getPropertiesFiles() {
		return propertiesFiles;
	}
	public void setPropertiesFiles(List<FileHelper> propertiesFiles) {
		this.propertiesFiles = propertiesFiles;
	}
	public List<FileHelper> getHdfsFiles() {
		return hdfsFiles;
	}
	public void setHdfsFiles(List<FileHelper> hdfsFiles) {
		this.hdfsFiles = hdfsFiles;
	}
	public List<FileHelper> getOutputFiles() {
		return outputFiles;
	}
	public void setOutputFiles(List<FileHelper> layoutFiles) {
		this.outputFiles = layoutFiles;
	}
	public PigScript getPigScript() {
		return pigScript;
	}
	public void setPigScript(PigScript pigScript) {
		this.pigScript = pigScript;
	}

	public Properties getProperties() {
		return properties;
	}
	public void setProperties(Properties properties) {
		this.properties = properties;
	}
	public String toString(){
		return ""+idAlert;
	}
	@Override
	public boolean equals(Object alert){
		if(alert instanceof Alert){
			if(this.idAlert.intValue()==((Alert) alert).getIdAlert().intValue()){
				return true;
			}
			else{
				return false;
			}
		}
		else{
			return false;
		}
	}
}
